home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / MorphOS / Epic4_mos / share / epic / help / 6_functions / chngw < prev    next >
Encoding:
Text File  |  2002-10-28  |  583 b   |  22 lines

  1. Synopsis::
  2.    $chngw(<index> <word> <text>)
  3.  
  4. Technical:
  5.    This function returns its input text, with the given word replacing the
  6.    word pointed to by the index.  Words are counted from 0 (zero).
  7.  
  8. Practical:
  9.    This function changes a single word in a list of words to another word.
  10.    This might be useful for changing a user's permission bits in a variable
  11.    that holds a script's access levels.
  12.  
  13. Returns:
  14.    text with new word inserted
  15.  
  16. Examples:
  17.    $chngw(2 blah foo bar booya)          returns "foo bar blah"
  18.  
  19. See also:
  20.    insertw(6); remw(6); splice(6)
  21.  
  22.